package com.pzb.web.controller.market;

import com.pzb.common.annotation.Log;
import com.pzb.common.core.controller.BaseController;
import com.pzb.common.core.domain.AjaxResult;
import com.pzb.common.core.page.TableDataInfo;
import com.pzb.common.enums.BusinessType;
import com.pzb.goods.domain.GdGoods;
import com.pzb.goods.service.IGdGoodsService;
import com.pzb.market.domain.MkDiscount;
import com.pzb.market.service.IMkDiscountService;
import com.pzb.wechat.service.IWechatAppletService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 店铺活动Controller
 * 
 * @author pzb
 * @date 2021-10-12
 */
@RestController
@RequestMapping("/discount")
public class MkDiscountController extends BaseController
{
    @Autowired
    private IMkDiscountService mkDiscountService;

    /**
     * 查询店铺活动列表
     */
    @GetMapping("/list")
    public AjaxResult list(@RequestParam("extAppid") String extAppid)
    {
        List<MkDiscount> list = mkDiscountService.selectProgressDiscountList(extAppid);
        return AjaxResult.success(list);
    }

}
